{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<style type="text/css">
.page{float:left;}
</style>
<body>
<div class="sub-body">
	<div class="tab_info" style="width:898px;">
		<div class="tab-title-1"><span>{$lang.member_manage} </span></div>
		<table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
			<tr>
				<td colspan="6" align="right" style="padding-right:50px;"><a href="{url index.php?app=member&act=add}" class="add btn-2">{$lang.add_new_user}</a></td>
			</tr>
			<tr>
				<th width="30%">{$lang.user_name}</th>
				<th width="20%">{$lang.role}</th>
				<th width="20%">{$lang.email}</th>
				<th width="10%">{$lang.is_activation}</th>
				<th width="20%">{$lang.handle}</th>
			</tr>
			<!--{foreach from=$users item=user}-->
			<tr>
				<td>{$user.user_name|escape}</td>
				<td>{$lang.roles.$user.role}</td>
				<td>{$user.email}</td>
				<td><!--{if $user.activation}-->{$lang.yes}<!--{else}-->{$lang.no}<!--{/if}--></td>
				<td><a href="{url app=member&act=edit&uid=$user.user_id}">{$lang.edit}</a>&nbsp;|&nbsp;<!-- {if $user.activation} --><a href="javascript:if(confirm('确认禁用此用户吗?')==true){location.href='{url app=member&act=forbid_user&uid=$user.user_id}';};">{$lang.forbid}</a>
					<!-- {else} --><a href="javascript:if(confirm('确认激活此用户吗?')==true){location.href='{url app=member&act=activation_user&uid=$user.user_id}';};">{$lang.activation}</a><!-- {/if} -->
					|&nbsp;<a href="javascript:if(confirm('确认删除此用户吗?')==true){location.href='{url app=member&act=del&uid=$user.user_id}';};">{$lang.delete}</a> </td>
			</tr>
			<!--{/foreach}-->
		</table>
		{include file=page.html}
		<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script> 
	</div>
	</div>
</body>
</html>